INCLUDES = -I$(top_srcdir)/src/ -I$(top_srcdir)/src/utils/ -I$(top_srcdir)/src/score/
METASOURCES = AUTO

noinst_HEADERS = massindexanchordummy.h
noinst_PROGRAMS = BoostSerializeTest ChargeMapperTest DBSequenceAndDigest \
	DBSequenceDigestorFactoryTest DBSequenceTest DancikTest DeltaMassTest EnzymeTest MassIndexTest \
	MetaScoreTest ModificationTest PMSNistReaderTest PeakTest \
	PeakTheoMsmsFactoryBasicTest PeptideMSMSFactoryTest PeptideModifierTest PeptidePMFFactoryTest \
	PeptideTest ProtobufSerializeTest RunTest RunTestGz SpectraAlignmentTest

AM_CXXFLAGS = $(BOOST_CPPFLAGS) $(PROTOBUF_CXXFLAGS) -DDATADIR=$(srcdir)/data
AM_LDFLAGS=$(BOOST_LDFLAGS) $(BOOST_REGEX_LIB) $(BOOST_SERIALIZATION_LIB) $(PROTOBUF_LIBS)

ModificationTest_SOURCES = ModificationTest.cpp
ModificationTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a 

PeptideTest_SOURCES = PeptideTest.cpp
PeptideTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a

PeptideModifierTest_SOURCES = PeptideModifierTest.cpp
PeptideModifierTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a

PeptideMSMSFactoryTest_SOURCES = PeptideMSMSFactoryTest.cpp
PeptideMSMSFactoryTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a

PeptidePMFFactoryTest_SOURCES = PeptidePMFFactoryTest.cpp
PeptidePMFFactoryTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a

EnzymeTest_SOURCES = EnzymeTest.cpp
EnzymeTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

#DBSequenceTest_DEPENDENCIES =
DBSequenceTest_SOURCES = DBSequenceTest.cpp
DBSequenceTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

DBSequenceAndDigest_SOURCES = DBSequenceAndDigest.cpp
DBSequenceAndDigest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

DBSequenceDigestorFactoryTest_SOURCES = DBSequenceDigestorFactoryTest.cpp
DBSequenceDigestorFactoryTest_LDADD = \
	$(top_builddir)/src/utils/libcaptainbol-utils.la $(top_builddir)/src/score/libcaptainbol-score.a \
	$(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)
	
PeakTest_SOURCES = PeakTest.cpp
PeakTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

DeltaMassTest_SOURCES = DeltaMassTest.cpp
DeltaMassTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

RunTest_SOURCES = RunTest.cpp
RunTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

RunTestGz_SOURCES = RunTestGz.cpp
RunTestGz_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB) $(BOOST_IOSTREAMS_LIB) 

MassIndexTest_SOURCES = MassIndexTest.cpp massindexanchordummy.cpp
MassIndexTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

PeakTheoMsmsFactoryBasicTest_SOURCES = PeakTheoMsmsFactoryBasicTest.cpp
PeakTheoMsmsFactoryBasicTest_LDADD = \
	$(top_builddir)/src/utils/libcaptainbol-utils.la $(top_builddir)/src/score/libcaptainbol-score.a \
	$(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

SpectraAlignmentTest_SOURCES = SpectraAlignmentTest.cpp
SpectraAlignmentTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

PMSNistReaderTest_SOURCES = PMSNistReaderTest.cpp
PMSNistReaderTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

DancikTest_SOURCES = DancikTest.cpp
DancikTest_LDADD = $(top_builddir)/src/msmscoring/libcaptainbol-msmsscoring.la \
	$(top_builddir)/src/utils/libcaptainbol-utils.la $(top_builddir)/src/score/libcaptainbol-score.a \
	$(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

ChargeMapperTest_SOURCES = ChargeMapperTest.cpp
ChargeMapperTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la \
	$(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB) 

MetaScoreTest_SOURCES = MetaScoreTest.cpp
MetaScoreTest_LDADD = $(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

BoostSerializeTest_SOURCES = BoostSerializeTest.cpp
BoostSerializeTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la $(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)

ProtobufSerializeTest_SOURCES = ProtobufSerializeTest.cpp
ProtobufSerializeTest_LDADD = $(top_builddir)/src/utils/libcaptainbol-utils.la $(top_builddir)/src/score/libcaptainbol-score.a $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB)
